]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Remove pan gesture from FolderView
authorJonas Dreßler <verdre@v0yd.nl>
Sat, 9 Apr 2022 22:44:01 +0000 (00:44 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 24 Feb 2023 15:32:06 +0000 (15:32 +0000)
The FolderView is a subclass of BaseAppView, which already has a
full-blown SwipeTracker attached to it. So no need to add another
PanGesture on top, the SwipeTracker will handle it for us.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2318>

js/ui/appDisplay.js

index 2535f2ee8021fedbb030b902ca4a704eec846d6f..17afb899d1d5e530cd03f8f1c6b305fc4bfafdab 100644 (file)
@@ -2132,10 +2132,6 @@ class FolderView extends BaseAppView {
 
         this.add_child(this._box);
 
-        let action = new Clutter.PanAction({ interpolate: true });
-        action.connect('pan', this._onPan.bind(this));
-        this._scrollView.add_action(action);
-
         this._deletingFolder = false;
         this._apps = [];
         this._redisplay();
@@ -2195,13 +2191,6 @@ class FolderView extends BaseAppView {
         return icon;
     }
 
-    _onPan(action) {
-        let [dist_, dx_, dy] = action.get_motion_delta(0);
-        let adjustment = this._scrollView.vscroll.adjustment;
-        adjustment.value -= (dy / this._scrollView.height) * adjustment.page_size;
-        return false;
-    }
-
     _loadApps() {
         this._apps = [];
         const excludedApps = this._folder.get_strv('excluded-apps');